<?php
require_once('Template.class.php');

class Translate 
{
	 public static function getTranslateKeys ($keys_file,$templ_file)
	 {
		 $keys=parse_ini_file($keys_file);
		 $templ_keys=Template::keys($templ_file,Template::$HTML_PATH);
		 
		  for ($i=0;$i<count($templ_keys);$i++)
		 {
			 $templ_keys[$i]=$keys[$templ_keys[$i]];  
		 }
		 
		 return $templ_keys;
	 
	 }
	 
	 	 public static function getPageKeys ($keys_file)
	 {
		 $keys=parse_ini_file($keys_file);		 
		 return $keys;	 
	 }
}
?>